<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
</head>
<body>
<div id="app">
    <p>currentTime1=={{currentTime1()}}</p>
    <p>currentTime2=={{currentTime2}}</p>
</div>
<script>
    var app = new Vue({
        el: '#app',
        methods: {
            currentTime1: function () {
                return Date.now();
            }
        },
        computed: {
            currentTime2() {

                return Date.now();
            }
        }
    });
</script>
</body>
</html>